import request from '@/utils/request'

export function dttGetAll(searchData) {
    return request({
      url: '/services/app/MaterialsService/GetAll',
      method: 'get',
      params: searchData
    })
  }

  export function dttCreated(dictTypeInfo) {
    return request({
      url: '/services/app/MaterialsService/Create',
      method: 'post',
      data: dictTypeInfo
    })
  }

  export function del(id) {
    return request({
      url: '/services/app/MaterialsService/Delete',
      method: 'delete',
      params: {Id:id}
    })
  }

  export function delAll(dd) {
    return request({
      url: '/services/app/MaterialsService/Delete',
      method: 'delete',
      params: {Id:dd}
    })
  }

  //编辑反填
export function pagess(id) {
  return request({
    url: '/services/app/MaterialsService/Get',
    method: 'get',
    params: {
      Id: id
    }
  })
}
//修改
export function Eintyess(tableData) {
  return request({
    url: '/services/app/MaterialsService/Update',
    method: 'put',
    data: tableData
  })
}